package com.tamir.template.config;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author : tanggh
 * @description : 正则表达式配置
 * @date : 2017/1/7
 */
public class PatternConfig
{
    /**
     * <else>结点正则
     */
    public static Pattern elsePattern = Pattern.compile("<else>");

    /**
     * 操作符结点配置
     */
    public static Pattern operatorPattern = Pattern.compile("\\(|\\)|\\+|-|\\*|/|=|<|>|!");

    public static void main(String[] args)
    {
        Matcher matcher = operatorPattern.matcher("aaa");
        System.out.println(matcher.find());
    }
}
